/* severity buttons style */

.sev-no {
  color: #000;
}

.sev-low {
  color: #400;
}

.sev-med {
  color: #800;
}

.sev-hi {
  color: #C00;
}

.sev-critic {
  color: #F00;
}

body {
  padding-top: 70px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Used in plugin reports */

.wrappedPre {
  overflow: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  word-wrap: normal;
}

.commandPre .wrappedPre {
  white-space: normal;
}

.panel-critical > .panel-heading, .alert-critical {
  background-image: linear-gradient(to bottom, #E6E6FA 0px, #E6E6FA 100%);
  background-repeat: repeat-x;
  border-color: #BDA0CB;
  color: #800080;
}

.btn-critical {
  color: #fff;
  background-color: #800080;
  border-color: #551A8B;
  text-decoration: none;
  &:active, &:hover {
    color: #fff;
    background-color: #800080;
    border-color: #551A8B;
    text-decoration: none;
  }
}

.btn-unranked {
  color: #fff;
  background-color: #A4A2A1;
  border-color: #6D6C6C;
  text-decoration: none;
  &:active, &:hover {
    color: #fff;
    background-color: #A4A2A1;
    border-color: #6D6C6C;
    text-decoration: none;
  }
}

.panel-passing > .panel-heading, .alert-passing, .label-passing, .btn-passive:active, .btn-passing.active {
  background-image: linear-gradient(to bottom, #76746D 0px, #67655D 100%);
  background-repeat: repeat-x;
  border-color: #5E5D57;
  color: #fff;
}

.severity-legend {
  list-style-type: none;
  width: 150px;
}

.workerpanel-legend {
  list-style-type: none;
  width: 300px;
}

.legend-color-box {
  float: left;
  width: 50%;
  margin-bottom: 10px;
  margin-right: 10px;
  max-width: 20px;
  &:before {
    content: "";
    display: block;
    padding-top: 100%;
  }
}

.nopadding {
  padding: 0 !important;
  margin: 0 !important;
}

.navbar-inverse {
  background-color: #2f4050;
  border-color: #2f4050;
  .navbar-brand {
    color: #fff;
  }
}

@media screen and (min-width: 768px) {
  .jumbotron {
    .h1, h1 {
      font-size: 61px;
    }
  }
}

@media (max-width: 1040px) {
  .navbar-header {
    float: none;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    &.collapse {
      display: none !important;
    }
  }
  .navbar-nav {
    float: none !important;
    margin: 7.5px -15px;
    > li {
      float: none;
      > a {
        padding-top: 10px;
        padding-bottom: 10px;
      }
    }
  }
  .navbar-text {
    float: none;
    margin: 15px 0;
  }
  /* since 3.1.0 */
  .navbar-collapse.collapse.in {
    display: block !important;
  }
  .collapsing {
    overflow: hidden !important;
  }
  .dashboard-subheading, .welcome-heading > h1 {
    text-align: center;
  }
}

.btn-target {
  background-color: #2f4050;
  border-color: #2f4050;
  color: #9d9d9d;
  &:hover, &:focus {
    color: #fff;
  }
}

@media (min-width: 914px) {
  .btn-target {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

.target-tab {
  position: relative;
  float: left;
}

/* CSS Belongs to Vulnerability Panel */
/* "not ranked" = gray, "passing" = light green, "info" = light sky blue, "low" = blue, medium = yellow, high = red, critical = dark purple */

.sevpanel-critical {
  background-color: #800080;
}

.sevpanel-high {
  background-color: #c12e2a;
}

.sevpanel-medium {
  background-color: #ffcc00;
}

.sevpanel-low {
  background-color: #337ab7;
}

.sevpanel-info {
  background-color: #b1d9f4;
}

.sevpanel-passing {
  background-color: #32CD32;
}

.sevpanel {
  color: #fff;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 5%;
}

.panel-heading .count {
  font-size: 2.5em;
  font-weight: 200;
}

.dashboard-subheading {
  color: #808080;
}

.panel-heading .severity {
  font-size: 1.2em;
}

.panel-div {
  padding: 0px;
}

.panel {
  border-radius: 0px;
}

/* --- End of CSS Vulnerability Panel ---- */
/* --- Start of Worker Panel CSS ----- */

.workerpanel-label {
  padding-top: 5px;
}

.workerpanel-labelimg {
  float: left;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .workerpanel-progress-bar, .vulchart {
    height: 200px;
    width: 200px;
  }
}

/* End of CSS for Worker Panel */
/* Modal related twiks */

.modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

.modal-title {
  color: #e94e38;
  text-align: center;
}

#drag {
  background-color: rgb(224, 224, 224);
  height: 3px;
  cursor: n-resize;
}

#left_panel, #right_panel {
  float: left;
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

#drag-left {
  background-color: rgb(224, 224, 224);
  width: 3px;
  float: left;
  position: relative;
  height: 100vh;
  margin-right: 15px;
  cursor: w-resize;
}

.error-modal-body-title {
  color: #e94e38;
  text-align: center;
  font-weight: 600;
}

/* Start of return to top at target page */

#return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.7);
  width: 50px;
  height: 50px;
  display: block;
  text-decoration: none;
  -webkit-border-radius: 35px;
  -moz-border-radius: 35px;
  border-radius: 35px;
  display: none;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 1000;
  i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  &:hover {
    background: rgba(0, 0, 0, 0.9);
    i {
      color: #fff;
      top: 5px;
    }
  }
}

/* End of return to top at target page */

.tab-content {
  overflow-x: scroll;
}

.modal-dialog-center {
  width: 320px;
  margin: 0;
  position: absolute;
  top: 35%;
  left: 42%;
}

.scrollable-menu {
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
}
